package com.yanqu.xiuxian.config.elementalbonds;

import com.yanqu.xiuxian.config.annotations.ConfigFieldAnnotation;
import com.yanqu.xiuxian.config.annotations.ConfigFileAnnotation;
import com.yanqu.xiuxian.config.utils.excel.StringUtils;
import com.yanqu.xiuxian.utils.date.DateHelper;

@ConfigFileAnnotation(fileName = "ElementalBondsMode")
public class ElementalBondsModeConfig {
    @ConfigFieldAnnotation(filedName = "id")
    private int modeId;
    private int maxRound;
    private int maxStep;
    @ConfigFieldAnnotation(filedName = "clearTime", parseMethod = "parseClearTime")
    private long clearTime; // 我们的是毫秒
    private String exParam;

    public int getModeId() {
        return modeId;
    }

    public void setModeId(int modeId) {
        this.modeId = modeId;
    }

    public int getMaxRound() {
        return maxRound;
    }

    public void setMaxRound(int maxRound) {
        this.maxRound = maxRound;
    }

    public int getMaxStep() {
        return maxStep;
    }

    public void setMaxStep(int maxStep) {
        this.maxStep = maxStep;
    }

    public long getClearTime() {
        return clearTime;
    }

    public void setClearTime(long clearTime) {
        this.clearTime = clearTime;
    }

    public String getExParam() {
        return exParam;
    }

    public void setExParam(String exParam) {
        this.exParam = exParam;
    }

    public void parseClearTime(String clearTime) {
        this.clearTime = StringUtils.parseLong(clearTime) * DateHelper.SECOND_MILLIONS;
    }

}
